package com.xbongbong.pro.statistic.pojo;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.domain.entity.ChartEntity;
import com.xbongbong.pro.statistic.result.pojo.FieldAttrPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;
import java.util.Map;

/**
 * @author zhouwq
 * @date 2020/9/8 9:27
 */

@Setter
@Getter
@ToString
public class FieldAnalysisPojo extends BaseDTO {

    private ChartEntity chartEntity;

    private List<String> values;

    private List<String> valuesResult;

    private FieldAttrPojo field;

    private Map<String, String> dataIdToEsId;

    private String corpid;

    private Boolean isGroupField;

    private Boolean isChart;

    /**
     * 业务类型
     */
    private Integer businessType;

    private Boolean isWarningSync;

    public FieldAnalysisPojo() {
    }

    public FieldAnalysisPojo(ChartEntity chartEntity, List<String> values, List<String> valuesResult, FieldAttrPojo field,
                             Map<String, String> dataIdToEsId, String corpid, Boolean isGroupField, Boolean isChart, Integer businessType) {
        this.chartEntity = chartEntity;
        this.values = values;
        this.valuesResult = valuesResult;
        this.field = field;
        this.dataIdToEsId = dataIdToEsId;
        this.corpid = corpid;
        this.isGroupField = isGroupField;
        this.isChart = isChart;
        this.businessType = businessType;
    }

    public FieldAnalysisPojo(ChartEntity chartEntity, List<String> values, List<String> valuesResult, FieldAttrPojo field, Map<String, String> dataIdToEsId, String corpid, Boolean isGroupField, Boolean isChart, Integer businessType, Boolean isWarningSync) {
        this.chartEntity = chartEntity;
        this.values = values;
        this.valuesResult = valuesResult;
        this.field = field;
        this.dataIdToEsId = dataIdToEsId;
        this.corpid = corpid;
        this.isGroupField = isGroupField;
        this.isChart = isChart;
        this.businessType = businessType;
        this.isWarningSync = isWarningSync;
    }
}
